<template>
  <a-form-item label="最大上传数量">
    <a-input-number :min="1" mode="button" v-model="modelLimit" />
  </a-form-item>
  <a-form-item label="文件大小限制（MB）">
    <a-input-number :min="1" mode="button" v-model="modelFileMaxSize" />
  </a-form-item>
</template>
<script setup lang="ts">
import { useVModel } from "@vueuse/core";

const props = withDefaults(
  defineProps<{
    limit?: number;
    fileMaxSize?: number;
  }>(),
  {
    // /**
    //  * 最大文件数
    //  */
    // limit: 3,
    // /**
    //  * 文件大小
    //  */
    // fileMaxSize: 5,
  }
);
const emits = defineEmits(["update:limit", "update:fileMaxSize"]);
const modelLimit = useVModel(props, "limit", emits);
const modelFileMaxSize = useVModel(props, "fileMaxSize", emits);
</script>
